{% extends "base.html" %}

{% block additional_title %}
	{% ifequal news_id 0 %}
		Nova vest
	{% else %}
		Izmena vesti
	{% endifequal %}
{% endblock %}

{% block additional_head %}
<script type="text/javascript" src="/mdcs/media/js/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="/mdcs/media/js/tiny_mce/textareas.js"></script>
{% endblock %}


{% block content %}

<center><h2>
{% ifequal news_id 0 %}
Dodavanje nove vesti
{% else %}
Izmena vesti
{% endifequal %}
</h2></center>

{% ifequal news_id 0 %}
<form action="/mdcs/news/edit/" method="POST">
{% else %}
<form action="/mdcs/news/edit/{{ news_id }}/" method="POST">
{% endifequal %}

	{{ news_form.as_p }}

	{% ifequal news_id 0 %}
		<input type="submit" value="Dodaj" />
	{% else %}
		<input type="submit" value="Izmeni" />
	{% endifequal %}
</form>

{% endblock %}